package com;

import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.ami.weather.R;
import com.jy.common.i.IUmDelayInit;

public class MainActivity extends AppCompatActivity implements View.OnClickListener , IUmDelayInit {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_main);
        findViewById(R.id.kaiping).setOnClickListener(this);
        findViewById(R.id.xinxiliu).setOnClickListener(this);
        findViewById(R.id.chaping).setOnClickListener(this);
        findViewById(R.id.banner).setOnClickListener(this);
        findViewById(R.id.jilishipin).setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.kaiping:
                intent.setComponent(new ComponentName(this, SplashActivity.class));
                break;
            case R.id.xinxiliu:
                intent.setComponent(new ComponentName(this, FeedActivity.class));
                break;
            case R.id.chaping:
                intent.setComponent(new ComponentName(this, InterstitialActivity.class));
                break;
            case R.id.banner:
                intent.setComponent(new ComponentName(this, BannerActivity.class));
                break;
            case R.id.jilishipin:
                intent.setComponent(new ComponentName(this, RewardActivity.class));
                break;
        }
        startActivity(intent);


    }

    @Override
    public void initUm() {

    }
}
